home *** CD-ROM | disk | FTP | other *** search
- PXFESTRGET(3F) Last changed: 1-22-99
-
-
- NNAAMMEE
- PPXXFFEESSTTRRGGEETT - Accesses a single string element of a structure component
- that is an array
-
- SSYYNNOOPPSSIISS
- SSUUBBRROOUUTTIINNEE PPXXFFEESSTTRRGGEETT ((_j_h_a_n_d_l_e,, _c_o_m_p_n_a_m,, _i_n_d_e_x,, _v_a_l_u_e,, _i_l_e_n,, _i_e_r_r_o_r))
- IINNTTEEGGEERR _j_h_a_n_d_l_e,, _i_n_d_e_x,, _i_l_e_n,, _i_e_r_r_o_r
- CCHHAARRAACCTTEERR*_n _c_o_m_p_n_a_m,, _v_a_l_u_e
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- IEEE standard interface for FORTRAN 77
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- F77 compiler.
-
- The PPXXFFEESSTTRRGGEETT routine returns a string contained in a single element
- of a structure component that is an array.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX, the default kind is KKIINNDD==44.
-
- The following is a list of valid arguments for this subroutine:
-
- _j_h_a_n_d_l_e An input handle variable created with PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F).
-
- _c_o_m_p_n_a_m An input character variable or array element containing the
- desired structure component name.
-
- _i_n_d_e_x An input integer variable for the desired index in the
- array.
-
- _v_a_l_u_e An output character variable or array element that will
- contain the string referenced by _c_o_m_p_a_n_m, _i_n_d_e_x, and
- _j_h_a_n_d_l_e.
-
- _i_l_e_n An output integer variable for the length of the returned
- character string.
-
- _i_e_r_r_o_r An output integer variable that contains zero if PPXXFFEESSTTRRGGEETT
- was successful or nonzero if PPXXFFEESSTTRRGGEETT was not successful.
-
- The PPXXFFEESSTTRRGGEETT subroutine may return any of the following error
- values:
-
- EENNOONNAAMMEE If the component name is not defined for this structure.
-
- EETTRRUUNNCC If the declared length of the character argument is
- insufficient to contain the string to be returned.
-
- EENNOOMMEEMM If there is insufficent memory to create data structures
- needed by the routine.
-
- EEBBAADDHHAANNDDLLEE
- If _j_h_a_n_d_l_e is an invalid handle or has an incorrect handle
- type (UNICOS and UNICOS/mk systems only).
-
- EEXXAAMMPPLLEESS
- In this example, PPXXFFGGEETTGGRRGGIIDD(3F) and PPXXFFGGEETTGGIIDD(3F) are used to obtain
- the first user name in the current process' group.
-
- program pxftest
- integer igid, ierror, jgroup, len, imax, i
- character*30 loginname
- CALL PXFSTRUCTCREATE('group',jgroup,ierror)
- if (ierror .ne. 0) then
- print *,'FAILED: PXFSTRUCTCREATE with error = ',ierror
- else
- CALL PXFGETGID(igid,ierror)
- CALL PXFGETGRGID(igid,jgroup,ierror)
- if (ierror .ne. 0) then
- print *,'FAILED: PXFGETGRGID with error = ',ierror
- else
- CALL PXFINTGET(jgroup,'gr_nmem',imax,ierror)
- if (ierror .ne. 0) then
- print *,'FAILED: PXFINTGET with error = ',ierror
- else
- if (imax .gt. 0) then
- do i = 1,imax
- CALL PXFESTRGET(jgroup,'gr_mem',i,loginname,len,ierror)
- print *,loginname
- end do
- else
- print *,'FAILED: Could not test PXFESTRGET'
- endif
- endif
- endif
- endif
- end
-
- SSEEEE AALLSSOO
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F)
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed
- version of this man page.
-